package org.uu.serviceconsume.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.uu.serviceconsume.service.impl.HelloConsumer;

@RestController
public class HelloController {

    @Autowired
    private HelloConsumer consumer;

    @RequestMapping("/say")
    public String say(String name){
        return consumer.sayHello(name);
    }
}
